/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BUS;

import DAO.MyAttachDAO;
import DTO.MyAttachDTO;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;

/**
 *
 * @author Dang Thi Phuong Thao
 */
public class MyAttachBUS {
    private MyAttachDAO myAttactDAO = new MyAttachDAO();
     public ArrayList<MyAttachDTO> layTatCaAttachCuaMailID (int MailID)throws IOException, SQLException{
        return myAttactDAO.layTatCaAttachCuaMailID(MailID);
    }
    public ArrayList<MyAttachDTO> layTatCaAttach () throws IOException, SQLException{
        return myAttactDAO.layTatCaAttach();
    }
    public int themAttach (MyAttachDTO myAttachDTO) throws IOException{
     return myAttactDAO.themAttach(myAttachDTO);
    }
     public int xoaAttach(MyAttachDTO attachDTO) throws IOException{
         return myAttactDAO.xoaAttach(attachDTO);
     }
}
 